<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/common/taglibs.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>心理健康指标</title>
	<%@ include file="/common/meta.jsp" %>
	<link href="${ctx}/css/table.css" type="text/css" rel="stylesheet"/>
	<script src="${ctx}/js/table.js" type="text/javascript"></script>
	<script src="${ctx}/js/health/survey.js" type="text/javascript"></script>
</head>
<body>
<div style="font-family:Arial;font-size:15px;font-weight:bold;font-style:normal;align:left">当前位置：健康管理--心里健康指标</div>
	<form id="mainForm" action="survey.action" method="get">
	<input type="hidden" name="page.pageNo" id="pageNo" value="${page.pageNo}"/>
	<input type="hidden" name="page.orderBy" id="orderBy" value="${page.orderBy}"/>
	<input type="hidden" name="page.order" id="order" value="${page.order}"/>
	<div id="filter">
	<table width="70%" class="noborder">
	    <tr>
		     <td>问卷名称：<input type="text" name="searchName" value="${searchName}" size="15"/></td>
		     <td>适用性别：<s:select name="searchGender" id="gender" style="width:90px" theme="simple"
									list="#{0:'全部',1:'男',2:'女'}" listKey="key" listValue="value" value="0"/></td>
	    	 <td>适用年级：<s:select name="searchGrade" id="grade" style="width:150px" theme="simple"
									list="gradeList" listKey="key" listValue="value" /></td>
	   </tr>
	   <tr>
	   		<td>问卷描述：<input type="text" name="searchDescription" value="${searchDescription}" size="15"/></td>
		    <td>年龄下限：<input type="text" name="searchLowerAge" value="${searchLowerAge}" size="9"/></td>
	    	<td>年龄上限：<input type="text" name="searchUpperAge" value="${searchUpperAge}"/></td>
	    </tr>	
	    <tr>
	    <td></td><td></td>
	    <td><input type="button" onclick="search();" value="查询"></input>
	    	<input type="button" onclick="goInput();" value="添加"></input></td>
	    </tr>    
    </table>
    </div>
	<p></p><p></p>
	<div id="content">
		<table width="95%" border="1" id="customers">
			<tr>
				<th>年级</th>
				<th>年龄段</th>
				<th>性别</th>
				<th>问卷名称</th>
				<th>问卷描述</th>
				<th>最后修改时间</th>
				<th>修改人</th>
				<th>操作</th>
			</tr>
			<s:iterator value="page.result">
			<tr>
				<td>${grade} 年级&nbsp;</td>
				<td>${lowerLimitAge}&nbsp;-&nbsp;${upperLimitAge}</td>
				<td>${gender==0?"男":"女"}&nbsp;</td>
				<td>${name}&nbsp;</td>
				<td>${description}&nbsp;</td>
				<td>${lastModified}&nbsp;</td>
				<td>${lastModifier.idNumber}&nbsp;</td>
				<td>
					<a href="survey!input.action?id=${id}">修改</a>
					<a href="survey!delete.action?id=${id}" onclick="return confirm('确定将此记录删除?')">删除</a>
				</td>
			</tr>
			</s:iterator>
		</table>
	</div>
	<p></p>
	<table width="95%" class="noborder">
	  <tr>
	  <td colspan="2"  align="right" >第${page.pageNo}页, 共${page.totalPages}页
		<a href="javascript:jumpPage(1)">首页</a>
		<s:if test="page.hasPre"><a href="javascript:jumpPage(${page.prePage})">上一页</a></s:if>
		<s:if test="page.hasNext"><a href="javascript:jumpPage(${page.nextPage})">下一页</a></s:if>
		<a href="javascript:jumpPage(${page.totalPages})">末页</a>
	  </td>
	  </tr>
	</table> 
</form>		
</body>
</html>